package com.yulan.bankback.xxlJob;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import com.xxl.job.core.log.XxlJobLogger;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;


@Component
@Slf4j
public class JobHandlerDemo {

    @XxlJob("demoJobHandler")
    public ReturnT<String> execute(String s) throws Exception {
//        XxlJobLogger.log("XXL-JOB, Hello World.");
        log.info("hello world");
        return ReturnT.SUCCESS;
    }
}
